[Unit]
Description=aria2
Require=network.target
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
User=root
Group=root

GuessMainPID=yes
ExecStart=/usr/bin/aria2c --enable-rpc --rpc-listen-all -D --conf-path={{ aria2_path }}/aria2.conf
ExecReload=/bin/kill -s QUIT $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
